import { request } from '@umijs/max';
// 查询不良记录列表
export function getBadRecordList(params:any) {
  return request('/api/badRecord/record/list', {
    method: 'get',
    params: params
  })
}
// 新增不良记录
export function addBadRecord(data:any) {
  return request('/api/badRecord/record', {
    method: 'post',
    data
  })
}
// 删除不良记录
export function deleteBadRecord(params:any) {
  return request(`/api/badRecord/record/${params}`, {
    method: 'delete',

  })
}
// 更新不良记录
export function updateBadRecord(data:any) {
  return request('/api/badRecord/record', {
    method: 'put',
    data
  })
}
// 不良记录详情
export function getBadRecordDetail(params:any) {
  return request(`/api/badRecord/record/${params.id}`, {
    method: 'get',

  })
}


